package com.service;

import java.util.List;

import com.dao.IStudentDao;
import com.model.Student;

public class StudentService implements IStudentService {
	private IStudentDao student;

	/* (non-Javadoc)
	 * @see com.service.IStudentService#getStudent()
	 */
	@Override
	public IStudentDao getStudent() {
		return student;
	}

	/* (non-Javadoc)
	 * @see com.service.IStudentService#setStudent(com.dao.IStudentDao)
	 */
	@Override
	public void setStudent(IStudentDao student) {
		this.student = student;
	}

	/* (non-Javadoc)
	 * @see com.service.IStudentService#save(com.model.Student)
	 */
	@Override
	public void save(Student s)
	{
		student.save(s);
	}

	/* (non-Javadoc)
	 * @see com.service.IStudentService#findAll()
	 */
	@Override
	public List<Student> findAll()
	{
		return student.findAll();
	}
}
